package com.loser.module.sql.entity;

import org.bson.Document;

import java.util.List;

public class ParsedQuery {

    private final String collectionName;
    private final String groupByField;
    private final List<AggregationField> aggregations;
    private final Document whereClause;

    public ParsedQuery(String collectionName, String groupByField, List<AggregationField> aggregations, Document whereClause) {
        this.collectionName = collectionName;
        this.groupByField = groupByField;
        this.aggregations = aggregations;
        this.whereClause = whereClause;
    }

    public String getCollectionName() {
        return collectionName;
    }

    public String getGroupByField() {
        return groupByField;
    }

    public List<AggregationField> getAggregations() {
        return aggregations;
    }

    public Document getWhereClause() {
        return whereClause;
    }

}
